﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using EyeOpen.Validation.Entities;

namespace EyeOpen.Validation.Windows
{
    public partial class Main : Form
    {
        public Main()
        {
            InitializeComponent();
        }

        private void btnValidate_Click(object sender, EventArgs e)
        {
            Person person = new Person();
            person.Name = txtName.Text;
            bool isValid = person.IsValid();
            label1.Text = isValid.ToString();
        }

    }
}
